package com.huiyou.adminapi.common;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

import lombok.Getter;
import lombok.Setter;

@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class FileReadException extends RuntimeException {

    @Setter
    @Getter
    private String message;

    public FileReadException() {
        this.message = "file does not exist";
    }

    public FileReadException(String message) {
        this.message = message;
    }

}
